package com.srd.phone.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import com.shengrongdai.srd.R;
import com.srd.phone.bean.TenderInfo;
import com.srd.phone.utils.views.ViewHolder;

import java.util.ArrayList;
import java.util.List;

public class LoanUtilAdapter extends BaseAdapter {

    private Context context;
    private List<TenderInfo> list = new ArrayList<TenderInfo>(10);

    public LoanUtilAdapter(Context context) {
        this.context = context;
    }

    public void setData(List<TenderInfo> list0) {
        list = list0;
        notifyDataSetChanged();
    }

    @Override
    public int getCount() {
        return 5;
    }

    @Override
    public Object getItem(int position) {
        return null;
    }

    @Override
    public long getItemId(int position) {
        return 0;
    }

    @Override
    public View getView(int position, View view, ViewGroup parent) {
        ViewHolder viewHolder =  ViewHolder.get(context, view, parent, R.layout.item_audit_loan, position);


        return viewHolder.getConvertView();
    }
}
